﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Nim.Game;
using Nim.Menu;
using Nim.IO;

namespace Nim
{
    class Program
    {
        /**
         * Learning Nim Game
         * 
         * The AI in this game watches the moves made by players when two people are playing
         * It also watches the moves its made when someone plays against it.
         * 
         * So no matter what, it's always learning...
         * 
         * For science...
         *
         **/

        static void Main(string[] args)
        {
            do
            {
                int mode = NimMenu.GetGameMode();

                NimGame game = new NimGame();
                game.Initialize();
                game.StartGame(mode);
            } while (KeyBoard.GetInt("Again? 1. Yes 2. No") != 2);
        }
    }
}
